# http://www.hahack.com/codes/cmake/
cmake_minimum_required (VERSION 2.8)
project (leetcode)
add_executable(two_sum two_sum.cpp)
add_executable(c5.1 c5.1.cpp c3.1.cpp c3.2.cpp foo.cpp)

add_executable(c3.1 c3.1.cpp)
set_target_properties(c3.1 PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/")
add_executable(c3.2 c3.2.cpp)
set_target_properties(c3.2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/")
add_executable(foo foo.cpp)
set_target_properties(foo PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/")
add_executable(e3.2 e3.2.cpp)
set_target_properties(e3.2 PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/")